package com.yonyou.cms.epc.mapper.graphic;


import com.yonyou.cms.epc.client.entity.graphic.GraphicSystemPO;
import com.yonyou.cms.wms.client.entity.part.PartInfoPO;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yzy
 * @since 2022-06-08
 */
public interface GraphicSystemMapper extends SuperMapper<GraphicSystemPO> {

    int updateByPrimaryKeySelective(GraphicSystemPO entity);

    boolean updateStatuByIds(Integer id,Integer statu);

    GraphicSystemPO checkCodeAndName(GraphicSystemPO entity);

    List<Map> selectQueryList(Map<String, Object> queryCondition);

    /**
     * 通过条件查询配件信息
     * @param params
     * @return
     */
    List<GraphicSystemPO> selectSystemByName(@Param("params") Map<String, Object> params);

    List<GraphicSystemPO> selectSystemByCode(@Param("params") Map<String, Object> params);

    int deleteBatchIds(List<Integer> list);
}
